﻿@using LessBoard.Models
@model ConfigModel
@{
    ViewBag.Title = "Config";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var grid = new WebGrid(Model.ConfigSettings);
}
<section id="main" class="column">
    <article class="module width_full">
        <h2>Config</h2>
        <div class="message_list">
            <div class="module_content">
               @grid.GetHtml(tableStyle: "tablesorter", columns: new[] {grid.Column("Id", 
                                        format: p => Html.ActionLink(
                                        "Edit",
                                        "Edit",
                                        new { id =p.Id },
                                        new { @class = "detailsLink" })), 
                                        grid.Column("Code"), grid.Column("Value") })
            </div>
        </div>
    </article>
</section>
